using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class IsValidStateTransitionRequest : OrganizationRequest
	{
		public EntityReference Entity
		{
			get
			{
				if (base.Parameters.Contains("Entity"))
				{
					return (EntityReference)base.Parameters["Entity"];
				}
				return null;
			}
			set
			{
				base.Parameters["Entity"] = value;
			}
		}
		public string NewState
		{
			get
			{
				if (base.Parameters.Contains("NewState"))
				{
					return (string)base.Parameters["NewState"];
				}
				return null;
			}
			set
			{
				base.Parameters["NewState"] = value;
			}
		}
		public int NewStatus
		{
			get
			{
				if (base.Parameters.Contains("NewStatus"))
				{
					return (int)base.Parameters["NewStatus"];
				}
				return 0;
			}
			set
			{
				base.Parameters["NewStatus"] = value;
			}
		}
		public IsValidStateTransitionRequest()
		{
			base.RequestName = "IsValidStateTransition";
			this.Entity = null;
			this.NewState = null;
			this.NewStatus = 0;
		}
	}
}
